public class r0919 {
    public static void main(String[] args) {
        System.out.println(123456);
        System.out.println(456789);
    }
}
